﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MeTalker.Aide.Forms
{
    internal partial class frmTypeInput : MeForm
    {
        public frmTypeInput()
        {
            InitializeComponent();
        }
        public frmTypeInput(string title):this()
        {
            this.kryptonGroupBox1.Text = title;
        }
        public frmTypeInput(string title, string text)
            : this(title)
        {
            this.txtMessage.Text = text;
        }
        private void btnNo_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.No;
        }
        public string MessageInfo { get { return msg; } }
        string msg;
        private void btnOK_Click(object sender, EventArgs e)
        {
            msg = txtMessage.Text;
            if (string.IsNullOrEmpty(msg)) {
                MessageBox.Show(kryptonGroupBox1.Text+"不能为空");
                return;
            }
            DialogResult = DialogResult.Yes;
        }
    }
}
